package day1115_2;

import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        RandomAccessFile  ra=new RandomAccessFile("D:\\y.txt","rw");
        ra.writeChar('A');
        ra.writeChar('F');
        ra.writeChar('B');

        ra.seek(4);
        System.out.println(ra.readChar());

    }
}
